module.exports = {
    chainWebpack: config => {
        config.when(process.env.NODE_ENV === 'production', config => {
            config.entry('app').clear().add('./src/main.js')
            config.set('externals', {
                vue:'Vue',
                'vue-router': 'VueRouter',
                axios:'axios',
                lodash:'_',
                echarts:'echards',
                nprogress:'NProgress',
                'vue-quill-editor': 'VueQuillEditor'
            })
        })
    }
}